import { Between, FindManyOptions, FindOneOptions, FindOptionsWhere, Like, Repository, UpdateResult } from 'typeorm'
import { BoolNum } from './type/base'
import { QueryListDto, ResponseListDto, SaveDto } from './dto'
import dayjs from 'dayjs'

export class BaseService<T, K> {
  Entity = null
  repository = null
  constructor(Entity: { new (): T }, repository: Repository<T>) {
    this.Entity = Entity
    this.repository = repository
  }

  // typeorm save 会保存关系，create 和 update 不会保存关系
  
}
